﻿@model Role
<table class="default">
    <tbody>
        @foreach (var item in (List<User>)ViewBag.users)
        {
            <tr>
                <td>
                @Html.CheckBox("UserId" + item.ID, Model == null ? false : Model.Users.Select(p => p.ID).Contains(item.ID))
                @Html.Label("UserId" + item.ID, item.UserName)
                </td>
            </tr>
        }
    </tbody>
    <tfoot>
    <tr><td align="center">@Html.Partial("_Button_Submit")</td></tr>
    </tfoot>
</table>
